package com.ray.depot.service;

import java.util.List;

import com.ray.depot.table.entity.Warehouse;
import com.zjhc.flyhong.common.datastructure.TreeNode;
import com.zjhc.flyhong.common.function.operator.LoginUser;
import com.zjhc.flyhong.common.function.operator.PageDto;
import com.zjhc.flyhong.common.web.Result;

public interface WarehouseService {

	/**
	 * 新增
	 * @param params
	 * @param user
	 * @return
	 */
	Result<Object> addWarehouse(Warehouse params, LoginUser user);
	
    /**
     * 查询
     * @param id
     * @param user
     * @return
     */
	Warehouse queryWarehouse(String id, LoginUser user);
	
    /**
     * 修改
     * @param params
     * @param user
     * @return
     */
	Result<Object> updateWarehouse(Warehouse params, LoginUser user);
	
    /**
     * 删除
     * @param id
     * @param user
     * @return
     */
	Result<Object> deleteWarehouse(String id, LoginUser user);
	
   /**
    * 查询
    * @param params
    * @param page
    * @param user
    * @return
    */
	PageDto<Warehouse> queryWarehouse(Warehouse params, PageDto<Warehouse> page, LoginUser user);
    /**
     * 获取仓库数
     * @param id
     * @param loginUser
     * @return
     */
    List<TreeNode> queryWarehouseList(String id, LoginUser loginUser);
    /**
     * 获取当前用户可用仓库
     * @param warehouseType
     * @param user
     * @return
     */
	List<Warehouse> queryWarehouse(Warehouse warehouse, LoginUser user);
   

}
